   <?php 
require_once("nav.php");

 ?>
       <div class="col-sm-9 col-md-10">
<!doctype html>
<html>
 <head>
  <meta charset="UTF-8">  
  <title>修改小说管理信息</title>
 </head>
 <body>
<?php
   $nid = $result['nid'];
   $novelname = $result['novelname'];
   $tid = $result['tid'];
   $pic = $result['pic'];
   $intro = $result['intro'];
   $uploaddate = $result['uploaddate'];
 ?>

<form method="post"  action="admin.php?c=novel&m=novelupdate&id=<?php  echo $nid;  ?>"  enctype="multipart/form-data">
<table class="table table-hover">
<h2><center>修改小说信息</center></h2>
<tr>
  <td width="20%">nid</td>
  <td width="80%"><?php  echo $nid;  ?>
  <input type="hidden" name="nid" value=<?php  echo $nid;  ?>>  
  </td>
</tr>
<tr>
    <td><label for="novelname">小说名称</label></td>
    <td>
      <input type="text" id="novelname" name="novelname" value="<?php echo $novelname;?>">
    </td>
</tr>
<tr>
    <td>小说类型</td>
    <!-- <td>
      <input type="text" id="tid" name="tid" value="<?php echo $tid;?>">
    </td> -->
    <td>
      <select name="tid">
         <option value="0">---请选择小说类型---</option>
         <option value="1" <?php  if($tid=='1') echo '$tid';  ?>>玄幻</option>
         <option value="2" <?php  if($tid=='2') echo '$tid';  ?>>武侠</option>
          <option value="3" <?php  if($tid=='3') echo '$tid';  ?>>都市</option>
           <option value="4" <?php  if($tid=='4') echo '$tid';  ?>>军事</option>
      </select>
    </td>
</tr>
<tr>
    <td><label for="pic">海报</label></td>
    <td>
      <img src="images/<?php echo $pic;?>" width=100 height=120>
      <input type="file" id= "pic" name="pic">
    </td>
</tr>
<tr>
    <td><label for="intro">内容简介</label></td>
    <td>
      <textarea class="form-control" id="intro" name="intro"> <?php echo $intro;?></textarea>
    </td>
</tr>
<tr>
    <td><label for="uploaddate">添加日期</label></td>
    <td>
      <input type="date" id="uploaddate" name="uploaddate" value=<?php echo $uploaddate;?>>
    </td>
</tr>
<tr>
  <td width=150></td>
  <td>
  <input type="submit" value="修改">
  <input type="reset" value="重置">
  </td>
</tr>
</table>
</form>
 </body>

</html>
<?php 
require_once('footer.php'); 
?>